package com.ctg.behavior.common.calc;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtCalcMeasureExpression {

	/*
	  {
			// "name": "自定义指标1",
			"events": [ "pullNew" ],
			"expression": "uniqcount(event.pullNew)/count(event.pullNew)|%d",
			"format": "%d",
			"expressionDenominatorWithoutGroup": true,
			"expressionFilters": {
			}
	   }
	 */
	
	// private String name; // 移动到CtCalcMeasure对象中的name
	private List<String> events = new ArrayList<String>();
	private String expression;
	private String format;
	private Boolean expressionDenominatorWithoutGroup = false;
	private List<CtCalcFilter> expressionFilters = new ArrayList<>();
	
}
